home *** CD-ROM | disk | FTP | other *** search
- # a Motif bug: getValues -command always returns an empty string
- # why? I dunno
- xtAppInitialize -class Program
-
- xmCommand .command managed
- .command commandEnteredCallback print_command
-
- proc print_command {} {
- .command getValues -command c
- puts stdout "Command: $c"
- }
-
- . realizeWidget
-
- . mainLoop
-